package com.dit.action.customer;

import org.springframework.beans.factory.annotation.Autowired;

import com.dit.action.AbstractAction;
import com.dit.service.SmeService;

public class DeleteSmeAction extends AbstractAction{
	
	private String id;
	
	@Autowired
	private SmeService smeService;
	
	
	
	public String execute() {
		
		int status = smeService.delete(id);
		
		if (status>0) {
			return SUCCESS;
			
		}
		else {
			return ERROR;
		}
		
		
	}



	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}

}
